package com.koron.css2;

import com.koron.css2.common.dto.HeaderInfoDto;
import com.koron.css2.serviceManage.bean.RequestBean;
import com.koron.css2.serviceManage.bean.UserInfoBean;
import org.koron.ebs.mybatis.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.List;
import java.util.Map;

public interface ImportExcelInterface {

	public static Logger logger = LoggerFactory.getLogger(ImportExcelInterface.class);
	
	/**
	 * 导入Excel 或者 Txt 业务接口类
	 * @param data
	 * @param header
	 * @return
	 */
	MessageBean<?> importExel(SessionFactory factory, UserInfoBean userInfo, RequestBean req, List<Map<String, String>> data, MultipartFile file);
	
	/**
	 * 获取文件的表头信息 
	 * @param header 
	 * @return
	 */
	List<HeaderInfoDto> getHeaderInfo(UserInfoBean userInfo);
	
	/**
	 * 是否检查表头
	 * @return
	 */
	boolean isCheckHeader();
}
